CGI-based materials and resources

TOP | Up | Pheedbak | Download | Tree | Topic | A-Z | Search | Hot | New


This subtree is dedicated to World Wide Web Common Gateway Interface, resources and materials. At the present time, current "residents" include:
  counterManPage  man page for Dan Rich's counter.pl script (see 
		  below) implemented to display a user counter for 
		  a WWW document.

  counter.html    An explanation of "How To Hook-Up Dan Rich's WWW 
		  Counter In Your Own HTTP-based Toolbox.

  examples.html   tutorial fashioned from Rob McCool's CGI Test 
		  Cases document.

  NCSA's documentation on The Common Gateway Interface   

  NCSA's tutorial for setting up CGI   
		  

The following files are links into ../cgi-bin, the directory where any http server for the toolbox needs to be told that all such CGI executable files reside so the server will run those links as executable. (The janitor found out that once one tells the server where such a CGI directory is located, "normal" href accesses to the script files in such a directory do NOT occur in the manner one expects for HTML text file documents. Instead, the server simply tries to execute that given link in exactly the same way it does for every such link throughout that tree. Silly janitor.... For a demo of this, see what happens when accessing the links to these scripts/programs in the ../cgi-bin.html description file.)

Some of the following file links display what looks like garbage. This is because the files ARE HTML-crafted documents, and, they are being interpreted by netscape accordingly.

  DTsearch-cgi:   All the "search" links point to this, which, when 
        	  accessed, presents people with the DT Search form.

  DTtest-cgi:     sh script demonstrating how the HTTP env var's
		  REMOTE_USER, REMOTE_IDENT, which are of great 
		  interest to the janitor, don't get definied if one
		  is not running a full-on secure commerce server.

  cgi-lib.pl:     Standard Perl routines to manipulate CGI input

  counter.pl:     Dan Rich's counter script:  increment a counter in 
		  a WWW document per user-access

  mailin-cgi:     script for mailing user-comment form output

  oretrieve-cgi:  CGI document retreival for Oasis

  osearch-cgi:    CGI search engine for Oasis

  pheedbak-cgi:   toolbox pheedbak cgi form.  notice how it eats up 
		  the path following its filename where the user was 
		  when they selected the pheedbak link (PATH_INFO), 
		  and the file they were in (QUERY_STRING).

  pid.c:          3-liner prog used by the tar* cgi scripts for 
		  creating a unique temporary directory to house the 
		  compressed tar image in prior to transmission.

  tar-cgi:        script generates compressed tar image for an entire
                  subdirectory or subtree the path and directory name
		  for which is fed to it in the PATH_INFO, 
		  PATH_TRANSLATED, and QUERY_STRING HTTP variables

  tarDFList-cgi:  scripts allows individual file and/or subdirectory 
                  selection for a given directory's contents to then
		  be scooped up into a compressed tar image in 
		  preparation for transmission to a remote site

  tarsend-cgi:    stop-gap script until the janitor figures out how
		  to have the tar* scripts be able to automatically 
		  remove the tmp dir once transmission is complete

  test-cgi.pl:    Dan Rich's perl version of the classic ncsa test-cgi


Select any combo of files and/or directories you'd like to send yourself a compressed tar image of. (Depending upon the browser, it may be necessary to hold down the Ctrl key to select/deselect disjoint items.) a compressed tar image of the above-selected items.
OR, ...
a compressed tar image of the entire cgi subdirectory.

Copyright © 1995, Silicon Graphics, Inc.